//
//  HMHomeController.m
//  OC版本新浪微博
//
//  Created by 赵少朋赵少朋 on 17/1/18.
//  Copyright © 2017年 ITheima. All rights reserved.
//

#import "HMHomeController.h"

@interface HMHomeController ()

@end

@implementation HMHomeController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    if (self.isLogin) {
        //登陆状态
        [self setupNavUI];
        
        
    } else {
    

        HMVisitorView *visitorView = self.visitorView;
        visitorView.circleView.hidden = NO;
        self.view = visitorView;
        
    }
}



- (void)setupNavUI {
    
    
    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithImgName:@"navigationbar_pop" title:nil target:self action:@selector(rightItemClick)];
    UIBarButtonItem *leftItem = [[UIBarButtonItem alloc] initWithImgName:@"navigationbar_friendsearch" title:nil target:self action:@selector(leftItemClick)];
    
    self.navigationItem.rightBarButtonItem = rightItem;
    
    self.navigationItem.leftBarButtonItem = leftItem;
}

#pragma mark -- 左侧点击事件
- (void)leftItemClick {

}

#pragma mark -- 右侧点击事件
- (void)rightItemClick {

}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
